projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef330a
)
luci-app-ddns: fix next_update error
author
DeYu Liu
<
[email protected]
>
Tue, 6 Jul 2021 05:37:53 +0000
(13:37 +0800)
committer
DeYu Liu
<
[email protected]
>
Tue, 6 Jul 2021 05:49:36 +0000
(13:49 +0800)
* Fix the error that next_update sometimes display Verify
Signed-off-by: DeYu Liu <
[email protected]
>
applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
patch
|
blob
|
history
diff --git
a/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
b/applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
index 22abcf4251328319ac494c9f0446e1d977e6713d..653e63c16ad1cf5f4783b2856584164c82a55261 100755
(executable)
--- a/
applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
+++ b/
applications/luci-app-ddns/root/usr/libexec/rpcd/luci.ddns
@@
-120,7
+120,7
@@
local methods = {
next_update = epoch2date(epoch + force_seconds + check_seconds)
end
- if pid > 0 and ( last_update + force_seconds - uptime ) <= 0 then
+ if pid > 0 and ( last_update + force_seconds
+ check_seconds
- uptime ) <= 0 then
next_update = "Verify"
-- run once